﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel;

namespace __ts.Core.Utilities
{
    /// <summary>
    /// 
    /// </summary>
    public static class WcfHelper
    {
        /// <summary>
        /// 获取通道端口
        /// </summary>
        public static int GetViaPort
        {
            get
            {
                return OperationContext.Current.Channel.LocalAddress.Uri.Port;
            }
        }
    }
}
